package org.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.springboot.common.entity.BaseEntity;

/**
 * 数据指标表
 *
 * @author Fz
 * @since 1.0.0 2024-11-15
 */

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("FMC_metrics")
public class FmcMetrics extends BaseEntity {

/*    @Column(name = "control_uuid", comment = "关联控制记录UUID", type = MySqlTypeConstant.VARCHAR)
    private String controlUuid;*/

    @Column(name = "job_desc", comment = "定时任务备注", type = MySqlTypeConstant.VARCHAR)
    private String jobDesc;

    @Column(name = "did", comment = "设备编码", type = MySqlTypeConstant.VARCHAR)
    private String did;

    @Column(name = "initial_value", comment = "阀开启时水表初次累计流量值", type = MySqlTypeConstant.FLOAT, decimalLength = 3)
    private Float initialValue;

    @Column(name = "irrigation_amount", comment = "灌溉量=阀关闭时水表上传的累计流量值-阀开启时水表初次累计流量值", type = MySqlTypeConstant.FLOAT, decimalLength = 3)
    private Float irrigationAmount;

    @Column(name = "et", comment = "蒸散量=阀开启时到阀下一次开启时的累计ET值", type = MySqlTypeConstant.FLOAT, decimalLength = 3)
    private Float et;

    @Column(name = "flow_rem", comment = "剩余流量", type = MySqlTypeConstant.FLOAT, decimalLength = 3)
    private Float flowRem;

    @Column(name = "soil_moisture", comment = "土壤水分", type = MySqlTypeConstant.FLOAT, decimalLength = 3)
    private Float soilMoisture;

}